<?php
session_start();
require_once '../../../includes/objects.php';
require_once '../../../includes/functions.php';
header('Content-Type: application/json; charset=utf-8');
//$datos = json_decode($_GET["datos"]);
$conexion1 = mysql_connect("localhost", "root", "root");
mysql_select_db("stick_wars", $conexion1);
$id_user=$_GET["idusuario"];
$info1 = 'SELECT * FROM datos WHERE id_user="' . $id_user . '"';
$resultado = mysql_query($info1, $conexion1) or die (mysql_error());
$array2 = array();
while ($filas = mysql_fetch_assoc($resultado)) {
	$array2[] = array_map('utf8_encode', $filas);
}

//=getDatosPersonales($id_user);
echo json_encode($array2);

?>